package cn.tedu.charging.order.emqx;

import cn.tedu.charging.order.dao.mapper.ChargingBillFailMapper;
import cn.tedu.charging.order.dao.mapper.ChargingBillSuccessMapper;
import cn.tedu.charging.order.dao.repository.ProgressESRepository;
import cn.tedu.charging.order.feign.CostClient;
import cn.tedu.charging.order.websocket.WebSocketServer;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Component
@Data
public class MqttContext {
    //暂时不知道 消费者应该使用我容器中哪些bean对象
    //写成功的订单
    @Autowired
    private ChargingBillSuccessMapper chargingBillSuccessMapper;
    //写失败的订单
    @Autowired
    private ChargingBillFailMapper chargingBillFailMapper;
    @Autowired
    private RedisTemplate redisTemplate;
    //webSocketServer推送消息对象
    @Autowired
    private WebSocketServer webSocketServer;
    //计价中心的feign客户端
    @Autowired
    private CostClient costClient;
    @Autowired
    private ProgressESRepository progressESRepository;
}
